G_PARAM_STATIC_STRINGS |
G_PARAM_EXPLICIT_NOTIFY);
+ /**
+ * GdkClipboard::changed:
+ * @clipboard: the object on which the signal was emitted
+ *
+ * The ::changed signal is emitted when the clipboard changes ownership.
+ */
signals[CHANGED] =
g_signal_new ("changed",
G_TYPE_FROM_CLASS (class),
deserialize_func (deserializer);
}
+/**
+ * gdk_content_deserializer_get_mime_type:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the mime type to deserialize from.
+ *
+ * Returns: (transfer none): the mime type for the current operation
+ */
const char *
gdk_content_deserializer_get_mime_type (GdkContentDeserializer *deserializer)
{
return deserializer->mime_type;
}
+/**
+ * gdk_content_deserializer_get_gtype:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the GType to create an instance of.
+ *
+ * Returns: (transfer none): the GType for the current operation
+ */
GType
gdk_content_deserializer_get_gtype (GdkContentDeserializer *deserializer)
{
return G_VALUE_TYPE (&deserializer->value);
}
+/**
+ * gdk_content_deserializer_get_value:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the #GValue to store the deserialized object in.
+ *
+ * Returns: (transfer none): the #GValue for the current operation
+ */
GValue *
gdk_content_deserializer_get_value (GdkContentDeserializer *deserializer)
{
return &deserializer->value;
}
+/**
+ * gdk_content_deserializer_get_input_stream:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the input stream that was passed to gdk_content_deserialize_async().
+ *
+ * Returns: (transfer none): the input stream for the current operation
+ */
GInputStream *
gdk_content_deserializer_get_input_stream (GdkContentDeserializer *deserializer)
{
return deserializer->stream;
}
+/**
+ * gdk_content_deserializer_get_priority:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the io priority that was passed to gdk_content_deserialize_async().
+ *
+ * Returns: the io priority for the current operation
+ */
int
gdk_content_deserializer_get_priority (GdkContentDeserializer *deserializer)
{
return deserializer->priority;
}
+/**
+ * gdk_content_deserializer_get_cancellable:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the cancellable that was passed to gdk_content_deserialize_async().
+ *
+ * Returns: (transfer none): the cancellable for the current operation
+ */
GCancellable *
gdk_content_deserializer_get_cancellable (GdkContentDeserializer *deserializer)
{
return deserializer->cancellable;
}
+/**
+ * gdk_content_deserializer_get_user_data:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the user data that was passed when the deserializer was registered.
+ *
+ * Returns: (transfer none): the user data for this deserializer
+ */
gpointer
gdk_content_deserializer_get_user_data (GdkContentDeserializer *deserializer)
{
return deserializer->user_data;
}
+/**
+ * gdk_content_deserializer_set_task_data:
+ * @deserializer: a #GdkContentDeserializer
+ * @data: data to associate with this operation
+ * @notify: destroy notify for @data
+ *
+ * Associate data with the current deserialization operation.
+ */
void
gdk_content_deserializer_set_task_data (GdkContentDeserializer *deserializer,
gpointer data,
deserializer->task_notify = notify;
}
+/**
+ * gdk_content_deserializer_get_task_data:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Gets the data that was associated with @deserializer via gdk_content_deserializer_set_task_data().
+ *
+ * Returns: (transfer none): the task data for @deserializer
+ */
gpointer
gdk_content_deserializer_get_task_data (GdkContentDeserializer *deserializer)
{
return G_SOURCE_REMOVE;
}
+/**
+ * gdk_content_deserializer_return_success:
+ * @deserializer: a #GdkContentDeserializer
+ *
+ * Indicate that the deserialization has been successfully completed.
+ */
void
gdk_content_deserializer_return_success (GdkContentDeserializer *deserializer)
{
/* NB: the idle will destroy our reference */
}
+/**
+ * gdk_content_deserializer_return_error:
+ * @deserializer: a #GdkContentDeserializer
+ * @error: a #GError
+ *
+ * Indicate that the deserialization has ended with an error.
+ * This function consumes @error.
+ */
void
gdk_content_deserializer_return_error (GdkContentDeserializer *deserializer,
GError *error)
serialize_func (serializer);
}
+/**
+ * gdk_content_serializer_get_mime_type:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the mime type to serialize to.
+ *
+ * Returns: (transfer none): the mime type for the current operation
+ */
const char *
gdk_content_serializer_get_mime_type (GdkContentSerializer *serializer)
{
return serializer->mime_type;
}
+/**
+ * gdk_content_serializer_get_gtype:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the GType to of the object to serialize.
+ *
+ * Returns: (transfer none): the GType for the current operation
+ */
GType
gdk_content_serializer_get_gtype (GdkContentSerializer *serializer)
{
return G_VALUE_TYPE (&serializer->value);
}
+/**
+ * gdk_content_serializer_get_value:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the #GValue to read the object to serialize from.
+ *
+ * Returns: (transfer none): the #GValue for the current operation
+ */
const GValue *
gdk_content_serializer_get_value (GdkContentSerializer *serializer)
{
return &serializer->value;
}
+/**
+ * gdk_content_serializer_get_output_stream:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the output stream that was passed to gdk_content_serialize_async().
+ *
+ * Returns: (transfer none): the output stream for the current operation
+ */
GOutputStream *
gdk_content_serializer_get_output_stream (GdkContentSerializer *serializer)
{
return serializer->stream;
}
+/**
+ * gdk_content_serializer_get_priority:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the io priority that was passed to gdk_content_serialize_async().
+ *
+ * Returns: the io priority for the current operation
+ */
int
gdk_content_serializer_get_priority (GdkContentSerializer *serializer)
{
return serializer->priority;
}
+/**
+ * gdk_content_serializer_get_cancellable:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the cancellable that was passed to gdk_content_serialize_async().
+ *
+ * Returns: (transfer none): the cancellable for the current operation
+ */
GCancellable *
gdk_content_serializer_get_cancellable (GdkContentSerializer *serializer)
{
return serializer->cancellable;
}
+/**
+ * gdk_content_serializer_get_user_data:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the user data that was passed when the serializer was registered.
+ *
+ * Returns: (transfer none): the user data for this serializer
+ */
gpointer
gdk_content_serializer_get_user_data (GdkContentSerializer *serializer)
{
return serializer->user_data;
}
+/**
+ * gdk_content_serializer_set_task_data:
+ * @serializer: a #GdkContentSerializer
+ * @data: data to associate with this operation
+ * @notify: destroy notify for @data
+ *
+ * Associate data with the current serialization operation.
+ */
void
gdk_content_serializer_set_task_data (GdkContentSerializer *serializer,
gpointer data,
serializer->task_notify = notify;
}
+/**
+ * gdk_content_serializer_get_task_data:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Gets the data that was associated with @serializer via gdk_content_serializer_set_task_data().
+ *
+ * Returns: (transfer none): the task data for @serializer
+ */
gpointer
gdk_content_serializer_get_task_data (GdkContentSerializer *serializer)
{
return G_SOURCE_REMOVE;
}
+/**
+ * gdk_content_serializer_return_success:
+ * @serializer: a #GdkContentSerializer
+ *
+ * Indicate that the serialization has been successfully completed.
+ */
void
gdk_content_serializer_return_success (GdkContentSerializer *serializer)
{
/* NB: the idle will destroy our reference */
}
+/**
+ * gdk_content_serializer_return_error:
+ * @serializer: a #GdkContentSerializer
+ * @error: a #GError
+ *
+ * Indicate that the serialization has ended with an error.
+ * This function consumes @error.
+ */
void
gdk_content_serializer_return_error (GdkContentSerializer *serializer,
GError *error)